package com.jie.langlangmall.service;

import com.jie.langlangmall.model.PmsSkuStock;

import java.util.List;

/**
 * @Author Jie
 * @Date 2024/11/24
 * @Email 3217998214@qq.com
 * @Description sku商品库存管理
 */
public interface PmsSkuStockService {

    /**
     * 根据商品ID及sku编码模糊搜索sku库存
     *
     * @param pid
     * @param keyword
     * @return
     */
    List<PmsSkuStock> list(Long pid, String keyword);

    /**
     * 更新库存信息
     *
     * @param pid
     * @param skuStockList
     * @return
     */
    void update(Long pid, List<PmsSkuStock> skuStockList);
}
